<template>
  <div id="advanced">
    <tab :tabs="tabs" :perm="perm" :map="map" v-if="$store.getters.menu!='newmenu'" />
    <div class="router-view-3">
      <!-- <keep-aclive>
        <component :is="curPage"></component>
      </keep-aclive> -->
      <router-view />
    </div>
  </div>
</template>

<script>
  import tab from '@/components/tab'
  // import osTextarea from '@/components/form/os-textarea'
  export default {
    // components: {
    //   tab,
    // },
    data(){
      return {
        tabs: this.$t('advanced.tabs'),
      }
    },
    computed:{
      perm: {
        get(){
          return this.$store.state.info.perm.adv
        },
        set(){

        },
      },
      map(){
        return this.$store.state.info.perm_map[3]
      }
    },
    created(){
      // 同步一级路由
      this.$emit('changeIdx', 3)
    },
    deactivated() {
      // console.log('deactivated', this.$route.meta)
      // this.$route.meta.refresh = false
    },
    activated() {
      // 同步一级路由
      this.$emit('changeIdx', 3)
    },
  }
</script>

<style lang="scss" scoped>

</style>
